package com.zl.singleton;

/**
 * @author zengle
 * @create 2021-05-29 22:43
 */
public class DCL {

    private static volatile DCL INSTANCE;

    private DCL() {
    }

    public static DCL getInstance() {
        if (INSTANCE == null) {
            synchronized (DCL.class) {
                if (INSTANCE == null) {
                    INSTANCE = new DCL();
                }
            }
        }
        return INSTANCE;
    }
}
